/**
 * @Copyright (C) 2019 广州金鹏集团有限公司.
 * 本系统是商用软件,未经授权擅自复制或传播本程序的部分或全部将是非法的.
 * @创建人: 赵力
 * @创建时间: 2019-01-23 10:58
 * @版本: V1.0
 */
package com.ikcai.enginegraph.domain.base;

import com.ikcai.enginegraph.constant.NodeType;
import com.ikcai.enginegraph.domain.base.abs.AllBaseEntity;
import org.neo4j.ogm.annotation.Relationship;

import java.util.Set;

/**
 * @类功能说明: 基础节点对象
 * @创建人: 赵力
 * @创建时间: 2019-01-23 10:58
 */
public class BaseNode extends AllBaseEntity {

    private String name; //名称

    @Relationship(type=NodeType.REF)
    private Set<BaseRelationship> relationships; //关系列表

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<BaseRelationship> getRelationships() {
        return relationships;
    }

    public void setRelationships(Set<BaseRelationship> relationships) {
        this.relationships = relationships;
    }
}
